//
//  CheekShowInfoView.m
//  CheekiOS
//
//  Created by mac on 2017/7/13.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "CheekShowInfoView.h"

@implementation CheekShowInfoView

- (instancetype)init {
    self = [super init];
    if (self) {
        [self addSubViews];
        
        
        self.backgroundColor = [UIColor clearColor];
    }
    return self;
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubViews];
        
        
        self.backgroundColor = [UIColor clearColor];
    }
    return self;
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super initWithCoder:aDecoder];
    if (self) {
        [self addSubViews];
        
        
        self.backgroundColor = [UIColor clearColor];
    }
    return self;
}

-(void)addSubViews{
    _headerimg = [[UIImageView alloc] init];
    _headerimg.frame = CGRectMake(self.centerX-45*SCREEN_WIDTH_RATIO47,0, 90*SCREEN_WIDTH_RATIO47, 90*SCREEN_WIDTH_RATIO47);
    [self addSubview:_headerimg];
    
    _nameImg = [UIButton buttonWithType:UIButtonTypeCustom];
    _nameImg.titleLabel.font = FontP(20);
    [_nameImg setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    _nameImg.frame = CGRectMake(0, _headerimg.bottom+25, KScreenWidth, 40);
    
    
    [self addSubview:_nameImg];
    
    _promptLab = [[UILabel alloc] init];
    _promptLab.frame = CGRectMake(0, _nameImg.bottom+15, KScreenWidth, 30);
    _promptLab.font = FontP(12);
    _promptLab.textColor = [UIColor blackColor];
    _promptLab.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_promptLab];
    _headerimg.image = [UIImage imageNamed:@"viedo_link_icon"];
    [_nameImg setTitle:@"正在寻找新朋友" forState:UIControlStateNormal];
    _promptLab.text = @"有些人一旦错过就不在，喜欢赶紧加好友！";
}

@end
